package com.nx.samuel.async_demo.provider.impl;

import com.nx.samuel.async_demo.api.HelloService;

import java.util.concurrent.TimeUnit;


public class HelloServiceImpl implements HelloService {

    @Override
    public String sayHello(String username) {

        try {
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello" + username;
    }
}
